package com.zmj.sy.mom.srv.aps.bean.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Comment("APS排产订单表")
@Getter
@Setter
@TableName("tb_aps_order")
public class ApsOrder extends BaseEntity {

    @Comment("订单ID")
    private Integer orderId;

    @Comment("倒排ID")
    private Integer reverseId;

    @Comment("订单编号")
    private String orderCode;

    @Comment("施工号")
    private String constructNo;

    @Comment("订单数量")
    private Integer orderQty;

    @Comment("完工数量")
    private Integer finishQty;

    @Comment("订单状态 1.已同步 2.拆单中 3.待排产 4.排产中 5.已排产 6.已发布 7.套料中 8.已开工 9.订单完成 10 订单关闭")
    private Integer orderStatus;

    @Comment("订单序列号")
    private Integer seq;

    @Comment("排产批次id")
    private Integer batchId;

    @Comment("产品编码")
    private String materCode;

    @Comment("产品名称")
    private String materName;

    @Comment("客户Id")
    private Integer customerId;

    @Comment("客户编号")
    private String customerCode;

    @Comment("客户名称")
    private String customerName;

    @Comment("客户优先级")
    private Integer customerPriority;

    @Comment("客户权重")
    private Integer customerWeight;

    @Comment("订单优先级")
    private Integer orderPriority;

    @Comment("订单权重")
    private Integer orderWeight;

    @Comment("计划开始时间")
    private LocalDateTime planStartDateTime;

    @Comment("计划结束时间")
    private LocalDateTime planEndDateTime;

    @Comment("订单日期")
    private LocalDateTime orderDateTime;

    @Comment("交付日期")
    private LocalDate deliveryDate;

    @Comment("完工日期")
    private LocalDateTime finishDateTime;

    @Comment("实际开始时间")
    private LocalDateTime actualStartTime;

    @Comment("实际完工时间")
    private LocalDateTime actualFinishTime;

    @Comment("顺序排产的排序")
    private Integer orderSeq;

    @Comment("锁定状态 1未锁 2锁定")
    private Integer locked;

    @Comment("备注：临时存储变量")
    private String remark;

    @Comment("订单导入类型 1ERP 2MBD")
    private Integer orderType;
}
